import { App } from "../../App";
import { ViewId } from "../../frame/common/view/IView";
import { IModule } from "../IModule";
import { DemoMainCtrl } from "./DemoMainCtrl";
import { DemoMainViewConfig } from "./DemoMainViewConfig";


export class DemoMainModule implements IModule{
    private static instance: DemoMainModule = new DemoMainModule();
    static get ins(): DemoMainModule {
        return this.instance;
    }
    private constructor() {
    }
    model: any;
    util?: any;

    init() {
        App.ins.viewMgr.register(
            ViewId.DEMO_MAIN,
            new DemoMainCtrl(DemoMainViewConfig.demoMain, null),
            null
        )

    }
    finit() {
    }

}
App.ins.moduleMgr.register(DemoMainModule.ins);